(function($) {	
	if(!$.wis)
		$.wis=function(){};
		
	$.wis.common={
		getPageScroll:function(){
			var xScroll, yScroll;
			if (self.pageYOffset) {
				yScroll = self.pageYOffset;
				xScroll = self.pageXOffset;
			} else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
				yScroll = document.documentElement.scrollTop;
				xScroll = document.documentElement.scrollLeft;
			} else if (document.body) {// all other Explorers
				yScroll = document.body.scrollTop;
				xScroll = document.body.scrollLeft;	
			}
			return new Array(xScroll,yScroll);
		},
		
		getPageSize:function(){
			var windowHeight, windowWidth;
		    if (window.innerHeight!=window.undefined){ 
		    	windowHeight = window.innerHeight;
		    	windowWidth  = window.innerWidth;
		    } else if (document.body) {
		    	windowHeight = document.body.clientHeight;
		    	windowWidth  = document.body.clientWidth;
		    }
		    return new Array(windowWidth-17,windowHeight);
		},
		
		addEvent:function(obj, evType, fn){
			if (obj.addEventListener){
				obj.addEventListener(evType, fn, false);
				return true;
			} else if (obj.attachEvent){
			   var r = obj.attachEvent("on"+evType, fn);
			   return r;
			} else {
			   return false;
			}
		},
		
		removeEvent:function(obj, evType, fn, useCapture){
			if (obj.removeEventListener){
				obj.removeEventListener(evType, fn, useCapture);
				return true;
			} else if (obj.detachEvent){
				var r = obj.detachEvent("on"+evType, fn);
				return r;
			} else {
				return false;
			}
		}
	}
})(jQuery);